package jsen.tool.ddd.demo.domain.parking.factory;

import jsen.tool.ddd.demo.domain.parking.Car;
import jsen.tool.ddd.demo.domain.parking.Location;

/**
 * @author jsen
 * @date 2021/10/6
 */
public class CarFactory {
    public static Car build(String plate, int x, int y) {
        return Car.builder().plate(plate).location(Location.builder().x(x).y(y).w(8).h(8).build()).build();
    }
}
